Skip to main content

7. Write a Python Program to Create a sequence of numbers using range datatype to display 1 to 30, with an increment of 2.

x = range(1, 30, 2)
for n in x:
print(n)
Reference